<?php
session_start();
if($_SERVER['HTTP_HOST'] == 'localhost')
{
  $hostname  = 'localhost';
  $username = 'root';
  $password = '';
  $db = 'nb158d';
}
// establish connection with mysql
mysql_connect($hostname, $username, $password) or die(mysql_error());

// select database
mysql_select_db($db)or die(mysql_error());


function pr($array){
  echo '<pre style="color:#FFF;background:#000;">';
  print_r($array);
  echo '</pre>';
}
